-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gad/setup #18
base: staging-2.5-fork
Are you sure you want to change the base?
Gad/setup #18
Conversation
Staging 2.5 fork
Staging 2.5 fork
function _.upgradeToAndCall(address,bytes) external => NONDET; | ||
} | ||
|
||
/// Is persistent because it mirrors the PoolManager storage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a copy-paste gives you away :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its inspiration
|
||
hook Sstore bids[KEY uint256 bid_id].amount uint256 new_amount (uint256 old_amount) { | ||
bids_amount[bid_id] = new_amount; | ||
sum_of_bids = sum_of_bids + 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to reset the bid? In that case when new_amount = 0 the sum_of_bids should reduce by 1.
} | ||
|
||
hook Sstore bids[KEY uint256 bid_id].isActive bool new_acitive (bool old_active) { | ||
if (new_acitive) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not new_active && !old_active
?
|
||
function _.upgradeToAndCall(address,bytes) external => NONDET; | ||
|
||
// Node manager summaries: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which rules are violated if you remove summaries for state-changing functions?
No description provided.